static void xenoprof_stop(void);
static int xenoprof_enabled = 0;
-int xenoprof_is_primary = 0;
+static int xenoprof_is_primary = 0;
static int active_defined;
/* Number of buffers in shared area (one per VCPU) */
*/
#ifndef __ASM_XENOPROF_H__
#define __ASM_XENOPROF_H__
-#ifdef CONFIG_OPROFILE
+#ifdef CONFIG_XEN
struct super_block;
struct dentry;
struct xenoprof_passive;
int xenoprof_arch_set_passive(struct xenoprof_passive* pdomain, struct xenoprof_shared_buffer* sbuf);
-#endif /* CONFIG_OPROFILE */
+#endif /* CONFIG_XEN */
#endif /* __ASM_XENOPROF_H__ */
#ifndef __XEN_XENOPROF_H__
#define __XEN_XENOPROF_H__
+#ifdef CONFIG_XEN
-#ifdef CONFIG_OPROFILE
#include <asm/xenoprof.h>
struct oprofile_operations;
int xenoprofile_init(struct oprofile_operations * ops);
void xenoprofile_exit(void);
-extern int xenoprof_is_primary;
-#define is_xenoprof_primary() (xenoprof_is_primary)
struct xenoprof_shared_buffer {
char *buffer;
struct xenoprof_arch_shared_buffer arch;
};
#else
-#define xenoprofile_init(ops) do { } while (0)
+#define xenoprofile_init(ops) (-ENOSYS)
#define xenoprofile_exit() do { } while (0)
-#define is_xenoprof_primary() (0)
-#endif /* CONFIG_OPROFILE */
+#endif /* CONFIG_XEN */
#endif /* __XEN_XENOPROF_H__ */